package org.dyk.seamanshousefrontdesk.repository;

import org.dyk.seamanshousefrontdesk.model.Goods;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface GoodsRepository extends CrudRepository<Goods, Integer> {
    //查询所有商品集合
    public List<Goods> findAll();

    //根据 主键 获取商品信息
    public Goods findByGid(int gid);
}
